package com.cloxtec.scada;

import com.cloxtec.scada.service.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@ServletComponentScan
@EnableCaching
public class ScadaApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ScadaApplication.class, args);
        SpringContextUtil.setApplicationContext(run);
    }

}
